package com.infore.statisticsAndAlarm.util;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class QueryChartsType {

	public static List<Map<String, Object>> getChartsType(){
		//折线图显示最大值最小值
		Map<String, Object> datas = new HashMap<String, Object>(); // series中的每个对象
		Map<String, String> maxMap = new HashMap<String, String>(); // 最大值
		Map<String, String> minMap = new HashMap<String, String>(); // 最小值
		List<Map<String, Object>> markPoint = new ArrayList<Map<String,Object>>(); // 图表标注数据集(最大值，最小值等)
		List<Map<String, String>> data = new ArrayList<Map<String,String>>(); // data
		maxMap.put("type", "max");
		maxMap.put("name", "最大值");
		minMap.put("type", "min");
		minMap.put("name", "最小值");
		minMap.put("name", "最小值");
		data.add(maxMap);
		data.add(minMap);
		datas.put("data", data);
		markPoint.add(datas);
		return markPoint;
	}
	
	public static List<Map<String, Object>> getChartsLine(){
		//折线图显示最大值最小值
		Map<String, Object> datas = new HashMap<String, Object>(); // series中的每个对象
		List<Map<String, String>> data = new ArrayList<Map<String,String>>(); // data
		Map<String, String> avgMap = new HashMap<String, String>(); // 最大值
		List<Map<String, Object>> markLine = new ArrayList<Map<String,Object>>(); // 图表标注数据集(最大值，最小值等)
		avgMap.put("type", "average");
		avgMap.put("name", "平均值");
		data.add(avgMap);
		datas.put("data", data);
		markLine.add(datas);
		return markLine;
	}

}
